<template>
  <div>
    <Child1_1 v-for="(item, index) in 3" v-bind="$attrs" v-on="$listeners" :key="index" :item="item"></Child1_1>

    <p>{{ goods }}</p>
  </div>
</template>

<script>
import Child1_1 from './Child1_1.vue'
export default {
  name: 'DEMOChild1',

  data() {
    return {
      count: 10000
    }
  },
  inject: ['goods'],
  components: {
    Child1_1
  },
  created() {
    console.log('child1')
  },
  // props: ['title', 'list'],

  mounted() {
    // console.log('child1:', this.title)
    // console.log('child1:', this.list)
    // console.log('其他没有声明的Props在：', this.$attrs) //{age:22, sex: 1}
    // console.log('event', this.$listeners)
    console.log('child1-1')
  },

  methods: {}
}
</script>

<style lang="less" scoped></style>
